package com.ftwj.demo.permission.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftwj.demo.permission.entity.RoleBean;
import com.ftwj.demo.permission.entity.RoleResourceBean;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Frencis
 * @since 2019-09-22
 */
public interface RoleResourceDao extends BaseMapper<RoleResourceBean> {
	
	/**
	 * 
	 * @Title: selectListByUserId
	 * @Description: 根据用户id获取用户角色列表
	 * @author: WangShengLi
	 * @param userId
	 * @return
	 * @return: List<RoleBean>
	 */
	List<RoleBean> selectListByUserId(@Param("userId") int userId);

}
